//---------------------------------------------------------------------------

#ifndef TEditEdgeFormH
#define TEditEdgeFormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "TLine.h"
struct TEdgeChanged {
  bool BeginP;
  bool EndP;
  bool Style;
  bool Color;
  bool Width;
  bool Caption;
  bool Font;
  bool Orient;
  bool WeightType;
  bool Weight;
  bool MarkDir;
};
//---------------------------------------------------------------------------
class TEditEdgeForm : public TForm
{
__published:	// IDE-managed Components
        TButton *CancelBtn;
        TButton *OkBtn;
        TButton *HelpBtn;
        TGroupBox *GroupBox1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TRadioGroup *WeightRG;
        TCheckBox *OrientCB;
        TButton *LineBtn;
        TCheckBox *MarkDirCB;
        TEdit *LengthEdit;
        TEdit *WeightEdit;
        TButton *CaptionBtn;
        TComboBox *BeginPComboB;
        TComboBox *EndPComboB;
        void __fastcall BeginPComboBChange(TObject *Sender);
        void __fastcall EndPComboBChange(TObject *Sender);
        void __fastcall OrientCBClick(TObject *Sender);
        void __fastcall MarkDirCBClick(TObject *Sender);
        void __fastcall WeightRGClick(TObject *Sender);
        void __fastcall OkBtnClick(TObject *Sender);
        void __fastcall BeginPBtnClick(TObject *Sender);
        void __fastcall EndPBtnClick(TObject *Sender);
        void __fastcall LineBtnClick(TObject *Sender);
        void __fastcall CaptionBtnClick(TObject *Sender);
        void __fastcall CancelBtnClick(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
  TLine *Line;
  TLine *CurLine;
  TEdgeChanged Changed;
  __fastcall TEditEdgeForm(TComponent* Owner);
  void __fastcall SetCurEdge(TLine *_Line);
  void __fastcall Define();
};
//---------------------------------------------------------------------------
extern PACKAGE TEditEdgeForm *EditEdgeForm;
//---------------------------------------------------------------------------
#endif
